<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// Test for https://bugs.webkit.org/show_bug.cgi?id=48019
// It is OK not to crash.
selection_test(
    '<div contenteditable>^<meter><isindex></isindex></meter>|</div>',
    'justifyCenter',
    [
      '<div contenteditable>',
        '<div style="text-align: center;"></div>',
        '<div style="text-align: center;">|<meter></meter></div>',
      '</div>',
    ],
    'JustifyCenter with METER should not crash');
</script>
